-- 进游戏场景的入口， 一般不用重写
local gamelib = require 'club.threecard.gamelib'
local blaze = require 'blaze'

local M = {}

function M.on_befor_enter()
end

function M.on_enter()
end

function M.on_entered()
    -- 切后台回来，重刷游戏场景
    local app_event = gamelib.require 'monoevent_implement.app_event'
    blaze.monoevent.on(nil, 'OnApplicationPause', app_event.OnApplicationPause)
end

function M.on_befor_exit()
end

function M.on_exit()
end

function M.on_exited()
    local app_event = gamelib.require 'monoevent_implement.app_event'
    blaze.monoevent.off(nil, 'OnApplicationPause', app_event.OnApplicationPause)
end

return M